import VideoPlayer from "./VideoPlayer";
import TipsCard from "./TipsCard";
import TipsCell from "./TipsCell";
import UploadFile from "./UploadFile";
import UploadVideo from "./UploadVideo";
// @ts-ignore
import VueCropper from "./VueCropper/index.vue";
import UploadImage from "./UploadImage";
import SInput from "./Input";
import SSelect from "./Select";
import SRadioGroup from "./RadioGroup";
import UploadAvatar from "./UploadAvatar";
import UploadButton from "./UploadButton";
import SDatePicker from "./DatePicker";
import SvgIcon from "./SvgIcon/index.vue";
import IMToolTip from "./ToolTip";
const components = [
  VideoPlayer,
  TipsCard,
  TipsCell,
  UploadFile,
  UploadAvatar,
  UploadButton,
  UploadVideo,
  VueCropper,
  UploadImage,
  SInput,
  SSelect,
  SRadioGroup,
  SDatePicker,
  SvgIcon,
  IMToolTip,
];
components.forEach((item) => {
  if (!item.install) {
    item.install = function (app: any) {
      app.component(this.name, this);
    };
  }
});
const install = function (app: any) {
  components.forEach((component) => {
    app.use(component);
  });
};
export default {
  install,
};
